import request, { requestHis } from "@/utils/request";
// 就诊人信息对象功能接口

/**
 * @param {*} params
 * @returns
 */
export const queryPatInfoList = (params) =>
  request("/taPatInfo", { method: "get", params });

/**
 * @param {*} data
 * @returns
 */
export const addPatInfo = (data) =>
  request("/taPatInfo", { method: "post", data });

// /**
//  * @param {*} data
//  * @returns
//  */
//  export const uPatInfo = (params) =>
//  request("/api/ma/taPatInfo", { method: "get", params });

/**
 * @param {*} data
 * @returns
 */
export const deletePatInfo = (id) =>
  request(`/taPatInfo/${id}`, { method: "delete" });

// /**
//  * @param {*} data
//  * @returns
//  */
// export const queryPatInfo = (data) =>
//   requestHis(`/queryScheduleDepts`, { method: "post", data });

export const queryPatInfo = (data) =>
  requestHis(`/queryPatInfo`, { method: "post", data });

export const InsertPatInfo = (data) =>
  requestHis(`/InsertPatInfo`, {
    method: "post",
    data: { userCode: "weixin", ...data },
  });
